﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;

namespace AutomationMLMapper.Utilities
{
    static class Utils
    {
        static public BitmapImage PackImage(string filename)
        {
            BitmapImage image = new BitmapImage();

            image.BeginInit();
            image.UriSource = new Uri("pack://application:,,,/AutomationMLMapper;component/Images/" + filename);
            image.EndInit();

            return image;
        }
    }
}
